<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div style="font-size: 20px;font-weight: 700;">
        哈哈哈哈哈哈哈哈
    </div>
</body>
<script>
    var div=document.querySelector('div');
    div.onclick=function(){
        var currentFontSize=parseInt(this.style.fontSize);
        currentFontSize+=10;
        this.style.fontSize=currentFontSize+ 'px';
    }
</script>
</html>